/**
 * 
 */
package com.wsd.service;

import java.util.Date;
import java.util.List;

import com.wsd.bean.Articles;

/**
 * @author Administrator
 *
 */
public interface ArticleService {

	/**
	 * @param article
	 */
	void save(Articles article);

	/**
	 * @param startDate
	 * @param endDate
	 * @param limit
	 * @return
	 */
	List<Articles> history(Date startDate, Date endDate, int start, int limit);

	/**
	 * @return
	 */
	int historyCount(Date startDate, Date endDate);

	/**
	 * @param ids
	 */
	void delete(int[] ids);

	/**
	 * @param id
	 * @return
	 */
	Articles findById(Integer id);

	/**
	 * @param preArticle
	 */
	void update(Articles preArticle);

	/**
	 * @param article
	 * @return
	 */
	List<Articles> getArticles(Articles article,int start,int limit);

	/**
	 * @param article
	 * @return
	 */
	int getArticlesCount(Articles article);
	
	List<Articles> findByModel(int start, int pagesize, int model);

}
